package com.vae.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vae.content.domain.dto.CoursePreviewDto;
import com.vae.content.domain.entity.CoursePublish;

import java.io.File;

/**
 * @author: 35238
 * 功能: 视频预览
 * 时间: 2024-05-22 22:01
 */
public interface CoursePublishService extends IService<CoursePublish> {

    /**
     * @description 获取课程预览信息
     * @param courseId 课程id
     */
    CoursePreviewDto getCoursePreviewInfo(Long courseId);
    /**
     * 课程提交审核
     * @param courseId  课程id
     */
    void commitAudit(Long companyId,Long courseId);



    /**
     * @description 课程发布接口
     * @param companyId 机构id
     * @param courseId 课程id
     */
    void publish(Long companyId,Long courseId);


    /**
     * @description 课程静态化
     * @param courseId  课程id
     */
    File generateCourseHtml(Long courseId);
    /**
     * @description 上传课程静态化页面
     * @param file  静态化文件
     */
    void uploadCourseHtml(Long courseId, File file,Long companyId);
    /**
     * 查询课程发布信息
     * @param courseId
     * @return
     */
    CoursePublish getCoursePublish(Long courseId);

    /**
     * @description 查询缓存中的课程信息
     * @param courseId
     */
    CoursePublish getCoursePublishCache(Long courseId);

}
